DX11 SET SPRITE SHADER

Sets the pixel shader to be used for drawing the given sprite.
By providing your own shaders you can achieve much more intriguing effects in a 2D environment than is permitted by scaling, moving, rotating and swapping sprite images alone.
You can bind up to 16 textures as well as a constant buffer to each sprite in order to facilitate communication from your program to your shader during runtime.

  Syntax
DX11 SET SPRITE SHADER sprite, pixelShader
  Parameters
sprite
Dword
The sprite to set the shader for.
pixelShader
Dword
The pixel shader to use to render the given sprite.

  Returns

This function does not return a value.

  See also

SPRITE Functions Menu
DX11 Function Categories